
package com.scalar.chiptrack.operations.packingslip;

import java.io.Serializable;

import com.scalar.chiptrack.commons.Constants;

public final class CustomerShippingLineItem
	implements Constants, Serializable
{

    private int m_id = -1;
    private String m_status = CUSTOMER_SHIPPING_STATUS_OPEN;
    private int m_customerShippingId = -1;
    private int m_lineItemId = -1;
    private int m_qtyShipped = 0;
    private int m_qtyToBeShipped = 0;
    private String m_shippedDate = null;
    private String m_description = null;
    private String m_softwareVersion = null;
	private String m_customerPartNumber = null;
	private String m_units = null;
	private int m_lineItemNumber = -1; // added member variable and getter and setter methods by ravikanth for releasing lots in issued Packing slip

    public CustomerShippingLineItem() {
    }

    public CustomerShippingLineItem (int id, int customerShippingId, int lineItemId, int qtyShipped, String shippedDate, String status) {
        m_id = id;
        m_customerShippingId = customerShippingId;
        m_lineItemId = lineItemId;
        m_qtyShipped = qtyShipped;
        m_shippedDate = shippedDate;
        m_status = status;
    }
    //added by vasu on 20 May 2003
    public CustomerShippingLineItem (int id, int customerShippingId, int lineItemId, int qtyShipped, String shippedDate, String description,String softwareVersion,String status)
    {
    m_id = id;
    m_customerShippingId = customerShippingId;
    m_lineItemId = lineItemId;
    m_qtyShipped = qtyShipped;
    m_shippedDate = shippedDate;
    m_description = description;
    m_softwareVersion = softwareVersion;
    m_status = status;

    }

    public CustomerShippingLineItem (int lineItemId, int qtyShipped, int qtyToBeShipped) {
        this(lineItemId, qtyShipped, qtyToBeShipped, null /*shippedDate*/);
    }

    public CustomerShippingLineItem (int lineItemId, int qtyShipped, int qtyToBeShipped, String shippedDate) {
        m_lineItemId = lineItemId;
        m_qtyShipped = qtyShipped;
        m_qtyToBeShipped = qtyToBeShipped;
        m_shippedDate = shippedDate;
    }

    // added by vasu on 22 May 2003
    public CustomerShippingLineItem ( int lineItemId, int qtyShipped, int qtyToBeShipped, String shippedDate,String description, String softwareVersion ) {
        m_lineItemId = lineItemId;
        m_qtyShipped = qtyShipped;
        m_qtyToBeShipped = qtyToBeShipped;
        m_shippedDate = shippedDate;
        m_description = description;
        m_softwareVersion = softwareVersion;
    }

    /**
     * id property
     */
    public int getId() {
        return m_id;
    }

    public void setId (int id) {
        m_id = id;
    }


    /**
     * Status Property
     */
    public String getStatus() {
        return m_status;
    }

    public void setStatus (String status) {
        m_status = status;
    }


    /**
     * CustomerShippingId property
     */
    public int getCustomerShippingId() {
        return m_customerShippingId;
    }

    public void setCustomerShippingId (int customerShippingId) {
        m_customerShippingId = customerShippingId;
    }


    /**
     * LineItemId property
     */
    public int getLineItemId() {
        return m_lineItemId;
    }

    public void setLineItemId (int lineItemId) {
        m_lineItemId = lineItemId;
    }


    /**
     * Quantity Shipped property
     */
    public int getQtyShipped() {
        return m_qtyShipped;
    }

    public void setQtyShipped (int qtyShipped) {
        m_qtyShipped = qtyShipped;
    }

    /**
     * Quantity-To-Be-Shipped property
     */
    public int getQtyToBeShipped() {
        return m_qtyToBeShipped;
    }

    public void setQtyToBeShipped (int qtyToBeShipped) {
        m_qtyToBeShipped = qtyToBeShipped;
    }

    /**
     * Shipped Date Property
     */
    public String getShippedDate() {
        return m_shippedDate;
    }

    public void setShippedDate (String shippedDate) {
        m_shippedDate = shippedDate;
    }

    /**
     * Description
     */
    public String getDescription()
    {
        return m_description;
    }

    public void setDescription(String description)
    {
        m_description = description;
    }


    /**
     * Software Version
     * Added by vasu on 22 May 2003
     */
    public String getSoftwareVersion()
    {
        return m_softwareVersion;
    }

    public void setSoftwareVersion( String softwareVersion )
    {
        m_softwareVersion = softwareVersion;
    }

    /**
     * Customer Part Number
     * Bhaskar added this property on 16 Dec 2003
     */
    public String getCustomerPartNumber()
    {
        return m_customerPartNumber;
    }

    public void setCustomerPartNumber( String customerPartNumber )
    {
        m_customerPartNumber = customerPartNumber;
    }

    public int getLineItemNumber()
    {
        return m_lineItemNumber;
    }

    public void setLineItemNumber(int i)
    {
        m_lineItemNumber = i;
    }
    /**
     * Units
     * Bhaskar added this property on 23 Jan 2004
     */
    public String getUnits()
    {
        return m_units;
    }

    public void setUnits( String units )
    {
        m_units = units;
    }

}